package cn.qg.trade.service.goods;

import cn.qg.beans.pojo.QgGoods;
import cn.qg.mapper.qggoods.QgGoodsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 12:25
 */
@Service
public class GoodsServiceImpl implements GoodsService {
    @Resource
    QgGoodsMapper qgGoodsMapper;

    @Override
    public QgGoods getGoodsById(String id) throws Exception {

        QgGoods qgGoodsById = qgGoodsMapper.getQgGoodsById(Long.valueOf(id));

        return  qgGoodsById;
    }
}
